package com.jeesite.modules.dp.entity.kcgoumai;

import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
import com.jeesite.common.mybatis.annotation.Table;


/**
 * 课程购买记录Entity
 * @author hancing.com
 * @version 2025-01-03
 */
@Table(name="dp_kcgoumai", alias="a", label="课程购买记录信息", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="uno", attrName="uno", label="用户"),
		@Column(name="kcid", attrName="kcid", label="课程ID"),
		@Column(name="orderid", attrName="orderid", label="订单id"),
		@Column(name="kccode", attrName="kccode", label="激活码"),
	},orderBy="a.id DESC"
)
public class DpKcgoumai extends DataEntity<DpKcgoumai> {
	
	private static final long serialVersionUID = 1L;
	private String uno;		// 用户
	private String kcid;		// 课程ID
	private String kccode;		// 激活码
	private String orderid;
	
	
	public DpKcgoumai() {
		this(null);
	}
	
	public DpKcgoumai(String id){
		super(id);
	}
	
	@Size(min=0, max=36, message="用户长度不能超过 36 个字符")
	public String getUno() {
		return uno;
	}

	public void setUno(String uno) {
		this.uno = uno;
	}
	
	@Size(min=0, max=36, message="课程ID长度不能超过 36 个字符")
	public String getKcid() {
		return kcid;
	}

	public void setKcid(String kcid) {
		this.kcid = kcid;
	}
	
	@Size(min=0, max=255, message="激活码长度不能超过 255 个字符")
	public String getKccode() {
		return kccode;
	}

	public void setKccode(String kccode) {
		this.kccode = kccode;
	}

	public String getOrderid() {
		return orderid;
	}

	public void setOrderid(String orderid) {
		this.orderid = orderid;
	}
}